package com.belano;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.belano.alerts.AlertService;
import com.belano.domain.Spittle;

/**
 * Hello world!
 *
 */
public class App 
{    
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        AlertService service = (AlertService) context.getBean("jmsSender");
        service.sendSpittleAlert(new Spittle());
    }
}
